package com.xunshi.hikangvision;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class HiKangVisionApplication {

    private static String SERVER_PORT = "server.port";

    public static void main(String[] args) {
        ApplicationContext applicationContext=SpringApplication.run(HiKangVisionApplication.class, args);
        System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<启动成功！>>>>>>>>>>>>>>>>>>>>>>");
        Environment env = applicationContext.getEnvironment();

        System.out.println("本地接口地址------http://127.0.0.1:"+env.getProperty(SERVER_PORT));
    }

}
